Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/model/src/commonMain/kotlin/org/meshtastic/core/model/MeshBeaconOffer.kt 75ba819add7a16d4d2d718d4ec10483646a8ea23 (75ba819a) Text, 1.72 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.model

Tff7b72import T7ee787org.meshtastic.proto.MeshBeacon

T8b949e/**
* A received Mesh Beacon invitation — an advisory, zero-hop advertisement from another mesh offering a channel to join.
* Beacons are unsigned and originate from nodes outside the local NodeDB, so this is deliberately not a
* message/contact; it lives in the Discovery surface instead.
*
* @param fromNodeNum The node that broadcast the beacon (informational only — beacons are unsigned).
* @param beacon The decoded advertisement, carrying the display [message][MeshBeacon.message] and the join offer.
*/
Tff7b72data Tff7b72class T56d364MeshBeaconOfferTb4b4b4(Tff7b72val Te6edf3fromNodeNumTb4b4b4: Tffa657IntTb4b4b4, Tff7b72val Te6edf3beaconTb4b4b4: Te6edf3MeshBeaconTb4b4b4) Tb4b4b4{
T8b949e/** Stable identity for dedup/dismiss: a given sender advertising a given channel is one standing invitation. */
Tff7b72val Te6edf3keyTb4b4b4: Tffa657String
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Ta5d6ff"Tffd700$Te6edf3fromNodeNumTa5d6ff:Tffd700${Te6edf3beaconTb4b4b4.Te6edf3offer_channelTff7b72?.Te6edf3nameTb4b4b4.Te6edf3orEmptyTb4b4b4(Tb4b4b4)Tffd700}Ta5d6ff"

Tff7b72val Te6edf3messageTb4b4b4: Tffa657String
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Te6edf3beaconTb4b4b4.Te6edf3message

Tff7b72val Te6edf3channelNameTb4b4b4: Tffa657String?
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Te6edf3beaconTb4b4b4.Te6edf3offer_channelTff7b72?.Te6edf3nameTff7b72?.Te6edf3ifBlank Tb4b4b4{ Tff7b72null Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.4 - Generated in 0.1s